package utils.trtb.moviecliputils {
	import flash.display.MovieClip;
	/**
	 * ...
	 * @author Kihoonee
	 */
	public class MovieClipUtil {
		
		public function MovieClipUtil() {
			
		}
		
		//객체의 모든 자식 무비클립을 찾아서 스톱한다.
		static public function stopAllMovie( _mc:MovieClip ) {
			var target:MovieClip;
			var k:int;
			
			if (_mc == null) target = this;
			else target = _mc;
			
			for (k = 0; k < target.numChildren;++k) {
				try{
					var redClip:MovieClip = target.getChildAt(k) as MovieClip;
					trace(redClip.constructor.toString());
					//if (redClip.constructor.toString() == "[object MovieClip]"){
						redClip.gotoAndStop(1);
						stopAllMovie(redClip);
					//}
				}catch(e){}
				
			}
		}
	}
}